/*
** main.c for zomzom in /home/goupil_r//GameInLab/game1
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Thu Nov 15 15:42:06 2012 robin goupil
** Last update Sun Nov 18 16:21:58 2012 robin goupil
*/

#include <SDL/SDL.h>
#include <stdio.h>
#include <stdlib.h>
#include "include/my.h"
#include "include/zomzom.h"

int		main(int ac, char **av)
{
  SDL_Surface	*screen;

  screen = NULL;
  if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) == -1)
    {
      printf("Error: Couldn't init SDL : %s\n", SDL_GetError());
      exit(EXIT_FAILURE);
    }
  SDL_WM_SetCaption("Zomzom - The Game", NULL);
  if (screen = SDL_SetVideoMode(800, 600, 32, SDL_HWSURFACE | SDL_DOUBLEBUF))
    start_frame(screen);
  SDL_Quit();
  return (EXIT_SUCCESS);
}
